﻿using System.Collections.Generic;
using NTTDATA.BEENChina.ResultCertification.Result;

namespace NTTDATA.BEENChina.ResultCertification.DataStore
{
    public interface IMakeJob
    {
        /// <summary>
        /// 得到检验数据（未做成job）的日期
        /// </summary>
        /// <returns></returns>
        List<string> GetDistinctOridReceiveDates();

        /// <summary>
        /// 得到所有的检验项目
        /// 未做成job的
        /// </summary>
        /// <param name="oridReceiveDate"></param>
        /// <returns></returns>
        List<string> GetDistinctVerfityItemIds(string oridReceiveDate);

        /// <summary>
        /// 得到检验项目对应的ID
        /// </summary>
        /// <param name="oridReceiveDate"></param>
        /// <param name="verfityItemId"></param>
        /// <returns></returns>
        //List<string> GetChildImageSeqnos(string oridReceiveDate, string verfityItemId);
        List<ChildImage> GetChildImageSeqnos(string oridReceiveDate, string verfityItemId);

        /// <summary>
        /// 根据受番日期做成检验job 
        /// </summary>
        /// <param name="verfityJobId"></param>
        /// <param name="verfityItemId"></param>
        /// <param name="oridReceiveDate">yyyy-MM-dd</param>
        /// <param name="imageCount"></param>
        /// <param name="categoryId"> </param>
        /// <param name="categoryName"> </param>
        /// <returns></returns>
        int MakeVerfityJob(string verfityJobId,string verfityItemId,string oridReceiveDate,int imageCount,string categoryId,string categoryName);

        /// <summary>
        /// 更新childimage object
        /// </summary>
        /// <param name="verfityJobId"></param>
        /// <param name="seqnos"></param>
        /// <returns></returns>
        int UpdateChildImageVerfityJobId(string verfityJobId,List<string> seqnos);

       
    }
}
